package com.example.demo.VO;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.example.demo.bean.Cart;
import org.springframework.context.annotation.Bean;


public class CartVO extends Model<CartVO> {

    /**
     * 购物车id
     */
    private String id;

    /**
     * 商品名
     */
    private String name;

    /**
     * 订单数量
     */
    private Integer amount;

    /**
     * 地址
     */
    private String address;

    /**
     * 商品单价
     */
    private Integer unitPrice;

    /**
     * 商品价格
     */
    private Integer price;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(Integer unitPrice) {
        this.unitPrice = unitPrice;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "CartVO{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", amount=" + amount +
                ", address='" + address + '\'' +
                ", unitPrice=" + unitPrice +
                ", price=" + price +
                '}';
    }
}
